package com.resourcestore.dao;

import java.util.List;

import com.resourcestore.dao.BaseDao;
import com.resourcestore.model.ExcellentCourse;
import com.resourcestore.model.Major;
import com.resourcestore.utils.tag.Pagination;


public class ExcellentCourseDao extends BaseDao {

	public List<ExcellentCourse> selectExcellentCourse(){
		List<ExcellentCourse> list=this.queryForList("selectExcellentCourse");
		return list;
	}
	
	public List<ExcellentCourse> selectExcellentCoursePage(ExcellentCourse excellentCourse,Pagination pagination){
		List<ExcellentCourse> list = this.queryForPage("selectExcellentCoursePage", excellentCourse,pagination);
		return list;
	}
	
	public int queryExcellentCourseNum(ExcellentCourse excellentCourse) {
		return this.queryNum("selectExcellentCourseCount", excellentCourse);
	}
	
	public ExcellentCourse selectExcellentCourseById(ExcellentCourse excellentCourse){
		return (ExcellentCourse)this.queryForObject("selectExcellentCourseById", excellentCourse);
	}
	
	public void insertExcellentCourse(ExcellentCourse excellentCourse){
		this.insert("insertExcellentCourse", excellentCourse);		
	}
	
	public void updateExcellentCourse(ExcellentCourse excellentCourse){
		this.update("updateExcellentCourse", excellentCourse);	
	}
	
	public void deleteExcellentCourse(ExcellentCourse excellentCourse){
		this.delete("deleteExcellentCourse", excellentCourse);
	}
	public void deleteMoreExcellentCourse(ExcellentCourse excellentCourse){
		this.delete("deleteMoreExcellentCourse", excellentCourse);
	}
}
